<template>
	<view class="content">
		<image src="../../static/image_01.png" mode="aspectFit" class="shoppingcart"></image>
		<view class="container">
			<!-- <text class="text-area">收藏夹空空如也，去转转吧~</text> -->
			<button type="default" class="add-button user-center" @click="navTo()">个人中心</button>
			<button type="default" class="add-button go-buy">马上购物</button>
		</view>
	</view>
		<!-- <navigator url=""></navigator> -->
		
	</view>

</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			navTo(url){
				uni.navigateTo({
					url: `/pages/shoppingcart/mine`
				})
				// uni.redirectTo({
					
				// })
				// uni.navigateBack({
					
				// })
				// uni.switchTab({
					
				// })
			},
			axios() {
				
				uni.request({
					url: '',
					method: 'GET',
					data: {},
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
				uni.request({
				    url: 'https://www.example.com/request', //仅为示例，并非真实接口地址。
				    data: {
				        text: 'uni.request'
				    },
				    header: {
				        'custom-header': 'hello' //自定义请求头信息
				    },
				    success: (res) => {
				        console.log(res.data);
				        this.text = 'request success';
				    }
				});
				uni.chooseImage({
				    success: (chooseImageRes) => {
				        const tempFilePaths = chooseImageRes.tempFilePaths;
				        uni.uploadFile({
				            url: 'https://www.example.com/upload', //仅为示例，非真实的接口地址
				            filePath: tempFilePaths[0],
				            name: 'file',
				            formData: {
				                'user': 'test'
				            },
				            success: (uploadFileRes) => {
				                console.log(uploadFileRes.data);
				            }
				        });
				    }
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import 'static/css/smallCommon.scss'
</style>
